package com.gamerent.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 游戏账号实体类
 */
@Data
@TableName("t_game_account")
public class GameAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("category_id")
    private Long categoryId;

    @TableField("game_name")
    private String gameName;

    @TableField("account_name")
    private String accountName;

    @TableField("account_level")
    private String accountLevel;

    @TableField("description")
    private String description;

    @TableField("hourly_price")
    private BigDecimal hourlyPrice;

    @TableField("daily_price")
    private BigDecimal dailyPrice;

    @TableField("deposit")
    private BigDecimal deposit;

    @TableField("status")
    private Integer status; // 1:可租,2:已租,3:维护中

    @TableField("rent_count")
    private Integer rentCount;

    @TableField("tags")
    private String tags;

    @TableField("images")
    private String images;

    @TableField("specifications")
    private String specifications;

    @TableField("owner_id")
    private Long ownerId;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;
}